home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
Fight
/
battleinmegaville.swf
/
scripts
/
frame_2236
/
DoAction.as
Wrap
Text File
|
2006-09-05
|
2KB
|
77 lines
if(sprite[0]._state == STATE_IDLE)
{
sprite[0].swapDepths(sprite[1]);
}
if(hpbarframe0.chemx._currentframe != 3 && hpbarframe1.chemx2._currentframe != 3)
{
gotoAndPlay(2005);
}
else if(_gameMode == MODE_STORY && hpbarframe0.chemx._currentframe == 3)
{
_storylevel++;
removeAllClips();
if(_storylevel >= NUMOF_OPPONENTS || _storylevel >= NUMOF_OPPONENTS - 1 && _difficulty <= 5)
{
if(!_zimsurvivalunlock && !_continue)
{
gotoAndPlay(4386);
}
else if(_difficulty >= 9 && _zimsurvivalunlock && !_shiraunlock)
{
gotoAndPlay(4380);
}
else
{
gotoAndPlay(2676);
}
}
else
{
gotoAndPlay(1895);
}
}
else if(_gameMode == MODE_SURVIVAL && hpbarframe0.chemx._currentframe == 3)
{
_survivalhp = sprite[0]._hp + Math.round((MAX_HP - MIN_HP) * ((MAX_DIFFICULTY * 2 - _difficulty) / (MAX_DIFFICULTY * 2)));
if(_survivalhp > MAX_HP)
{
_survivalhp = MAX_HP;
}
removeAllClips();
_winstreak++;
if(_difficulty < MAX_DIFFICULTY * 2)
{
_difficulty++;
}
gotoAndPlay(1895);
}
else
{
removeAllClips();
if(_gameMode == MODE_STORY)
{
gotoAndPlay(2256);
}
else if(_gameMode == MODE_SURVIVAL)
{
if(_survival2 && _winstreak >= 2 && !_zimunlock)
{
gotoAndPlay(4383);
}
else if(_winstreak >= 10 && !_shirasurvivalunlock)
{
gotoAndPlay(4389);
}
else
{
gotoAndPlay(2256);
}
}
else
{
_continue = true;
gotoAndPlay(1882);
}
}
_root.attachMovie("fader","fader",Z_FADER);